
<a href="<?php echo $this->url(array('action' => 'index'), 'example_action'); ?>"><?php echo BaseZF::escape(_('Back to example index')); ?></a>

<br /><br />
<form method="post" action="<?php echo $this->url(); ?>">
    <fieldset>
    <legend><?php echo BaseZF::escape(_('Image resize')); ?></legend>
    <table>
        <tr>
            <th><?php echo BaseZF::escape(_('New with:')); ?></th>
            <td><?php echo $this->formText('new_width', $this->params['new_width']); ?></td>
            <td><?php echo (isset($this->paramsErrors['new_width']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['new_width'])) . '</em>' : '') ?></td>
        </tr>

        <tr>
            <th><?php echo BaseZF::escape(_('New height:')); ?></th>
            <td><?php echo $this->formText('new_height', $this->params['new_height']); ?></td>
            <td><?php echo (isset($this->paramsErrors['new_height']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['new_height'])) . '</em>' : '') ?></td>
        </tr>

        <tr>
            <td colspan="">
            <?php echo $this->formSubmit('submit', _('Submit')); ?>
            <?php echo $this->formReset('cancel', _('Cancel')); ?>
            </td>
        </tr>
    </table>
    </fieldset>
</form>


<h2><?php echo BaseZF::escape(_('Source Image')); ?></h2>
<img src="<?php echo $this->source_img; ?>">

<h2><?php echo BaseZF::escape(_('Resized Image')); ?></h2>
<img src="<?php echo $this->dest_img; ?>">
